<?php
/**
 * Created by PhpStorm.
 * User: root
 * Date: 2017/5/8
 * Time: 17:02
 */
$dsn="mysql:dbname=ecs_sample;host=127.0.0.1";
$user='root';
$pwd='dxy';
$pdo=new PDO($dsn,$user,$pwd);
var_dump($pdo);